-
Notifications
You must be signed in to change notification settings - Fork 87
API Reference > Options > Lifecycle Hooks の翻訳 #460
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✔️ Deploy Preview for vuejs-v3-ja-doc-preview ready! 🔨 Explore the source changes: 35731c1 🔍 Inspect the deploy log: https://app.netlify.com/sites/vuejs-v3-ja-doc-preview/deploys/611786390d02cc00082cb4fd 😎 Browse the preview: https://deploy-preview-460--vuejs-v3-ja-doc-preview.netlify.app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
大変遅くなりました。
レビュー 👀 コメント 💬 しました。
確認お願いします!
src/api/options-lifecycle-hooks.md
Outdated
|
||
Called when a kept-alive component is activated. | ||
kept-alive コンポーネントがアクティブになったときに呼び出されます。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kept-alive
コンポーネントというのはないですね。これ原文もkeep-alive
コンポーネントと間違っているので、原文も治す必要がありそうです。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://v3.vuejs.org/api/built-in-components.html#keep-alive
この組み込みコンポーネントのことを指していると思うのですが、やっぱり間違いでしょうか?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
はい、その keep-alive
コンポーネントを指しています。
kept-alive
は恐らく原文も typo しているので PR チャンスです!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
あ、typoでしたかw
全然気づかなかったです
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vuejs/docs#1158
PR 出しておきました。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これは意図的なものだとリプライもらいました。
ソースコードには出てくることなく、テストコードとかを読むとコメントで見つかりますね。
kept-alive コンポーネント(keep-alive の子コンポーネント)がアクティブになったときに呼び出されます。
skirtles-code にリプライもらったとおり、それを説明的にしてこういった訳でどうでしょうか?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
なるほど。自分もコード読んで理解しました。
https://github.com/vuejs/vue-next/blob/d045055b475f76624830ed594dd138ac71eccd4e/packages/runtime-core/src/components/KeepAlive.ts#L68
內部で子コンポーネントとして持っていますね。
kept-alive コンポーネント(keep-alive の子コンポーネント)がアクティブになったときに呼び出されます。
もう少し、補足して以下でどうでしょう?
kept-alive コンポーネント(keep-alive が內部で保持する子コンポーネント)がアクティブになったときに呼び出されます。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これに関する詳細についてドキュメントからは探せないので、より説明的になってよいですね!
|
||
Called when a kept-alive component is deactivated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここのkept-alive
コンポーネントも同様に原文も間違っています。
Co-authored-by: kazuya kawaguchi <kawakazu80@gmail.com>
Co-authored-by: kazuya kawaguchi <kawakazu80@gmail.com>
kept-alive コンポーネントについて修正したので、再レビューお願いします 🙏🏼 |
LGTM! |
* lang-ja: (27 commits) docs: translate parts of introduction fix: avoid redirects by including .html on links (#1163) no filters in vue 3 (#1171) feat: enable editLinks (close #1168) (#1172) fix: remove unnecessary particles Update web-components.md (#1166) docs: link to the style guide entry for keyed v-for (#1164) 3.2 updates (#1157) Extended watching multiple sources explanation (#1156) Update CONTRIBUTING.md API Reference > Options > Lifecycle Hooks の翻訳 (vuejs-jp#460) Added the missing JS comma at the end of a line (#1155) feat: added cursor pointer to ensure consistency (#1149) fix: updated rollup link fix: update link for 'SFC State-driven CSS Variables' RFC (#1145) docs: document the removal of binding.expression (#1133) docs: translate updates about options composition docs: update the API entries for mixins and extends (#1146) Update introduction.md ...
Description of Problem
API Reference > Options > Lifecycle Hooks の翻訳を追加しました。
原文ページ:
https://v3.vuejs.org/api/options-lifecycle-hooks.html
Proposed Solution
Additional Information